package com.em.mission;

import android.content.Context;

/**
 * Created by admin on 16/7/30.
 */

public abstract class Mission {

    public String missionName;
    public String tag;
    public boolean isExecute;
    public Context mContext;

    public MissionResultListener<Object> resultListener;
    public MissionListener missionListener;

    public int maxRetryTime;

    public static final int DEFAULT_PRIORITY = 100;

    public static final int DEFAULT_RETRY_TIME = 5;

    protected void beforeExecute(){};

    protected void onExecute(MissionResultListener listener){};

    protected void afterExecute(){};

    protected void executeSuccess(){};

    protected void executeFaile(){};

    protected void start(MissionListener listener,MissionResultListener resultListener){};

    protected void start(MissionResultListener resultListener){};

}
